<?php 
	include "ap_functions.php";
	include "connection_functions.php";
	db_connect();
?>
<html>

    <head>
    	<link rel="stylesheet" type="text/css" href="../css/admin_panel.css">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>
            	Administrator Panel
            </title>
    </head>

    <body>
    	<a href="home.php">
        <img class="logo" src="../pics/logo.png">
        </a><br>
        <div class="ap_management">
        	<strong>Create a New Entry</strong><br><br>
                <form action="create_bike.php" method="post">
                    Brand:<select name="brand">
                    			<option>                                     
										<?php
                                            ap_show_brands();
                                        ?>
                                </option>
                          </select><br>
                    Model:<input type="text" name="model"><br>
                    Color:<input type="text" name="color"><br>
                    Year of Make:<input type="text" name="year_of_make"><br>
                    Price Per Day<input type="text" name="price"><br>
                    Photo Path:<input type="text" name="photo_path"><br>
                    Description:<textarea cols="40" rows="8" name="description"></textarea><br>
                    <input type="submit"  value="submit" name="create_bike">
                </form>
                Add a brand:
                <form action="manage_bike.php" method="post">
                	<input type="text" name="add_brand">
                    <input type="submit" value="Add" name="add">
                </form>
        
        	Manage the bikes:
                <form action="manage_bike.php" method="post">
                    <select name="choice">
                         <?php 
                            ap_show_models();
						 ?>
                    </select>
                    <input type="submit" value="Modify">
                </form>
           
            
            Manage the clients:
            <form action="manage_users.php" method="post">
                <select name="select">
                                <?php
                                    ap_show_users();
                                ?>
                 </select>
                 <input type="submit" value="Modify">
             </form>
             </div>
             <div class="manage_news_offers">
             	
                	<form action="home.php" method="post">
                    Edit the NEWS section:<br>
                    	<textarea  cols="40" rows="12" name="news"></textarea>
                        <input type="submit" name="update_news" value="Modify">
                    </form>
                    
                    <form action="home.php" method="post">
                    Edit the OFFERS section:<br>
                    	<textarea  cols="40" rows="12"name="offers"></textarea>
                        <input type="submit" name="update_offers" value="Modify">
                    </form>

             </div>
             <div class="contact_about_us">
                 <form action="about_us.php" method="post">
                 Edit the About Us section:<br>
                 	<textarea  cols="40" rows="12" name="about_us"></textarea>
                 	<input type="submit" name="update_about_us" value="Modify">
                 </form>     
                 <form action="contact_us.php" method="post">
                 Edit the Contact Us section:<br>
                 	<textarea  cols="40" rows="12"name="contact_us"></textarea>
                 	<input type="submit" name="update_contact_us" value="Modify">
                 </form>
             </div>     
    </body>

</html>